layui.use(['form','jquery', 'layer'],function(){
	var form = layui.form;
	var $ = layui.$;
	var layer = layui.layer;
	
	
	
});

function createWorkflow(){
	layer.msg(1);
}

function openWorkflow(flowId, fromId, params){
	if(flowId){
		var contentUrl = "workflow_detail?flowId="+flowId;
		if(fromId){
			contentUrl += "&fromId="+fromId;
		}
		if(params){
			contentUrl += "&params="+encodeURI(params);
		}
		layer.open({
			type:2,
			content:contentUrl,
			title:"流程详情页面",
			area: ['90%', '90%'],
			maxmin:true,
			id:'workflowDetail',
			shade:false
		});
	}else{
		alert("flowId参数不能为空");
		return;
	}
	
	
}



